package com.example.demo.Dao;

import com.example.demo.Entity.ShopUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

@Mapper
public interface ShopUserDao {
    public ShopUser selectUserByUserID(String uid);

    public ShopUser selectUserByUserEmail(String email);

    public void registerNewUser(ShopUser user);

    public void changePasswordByUserID(@Param("uid") String uid, @Param("password") String password);

    public void changeInfoByUserID(@Param("uid") String uid, @Param("name") String name, @Param("signature") String signature, @Param("address") String address, @Param("pictureBase") String pictureBase);

    public void changeUnlockDateByUserID(@Param("uid") String uid, @Param("date") Date date);

    public void changeAdminByUserID(@Param("uid") String uid, @Param("isAdmin") boolean isAdmin);
}
